<%
	// Copyright (c) 2010 Canadensys
        /* Merge data-model with template */
        if (PROCESS_TEMPLATE) {
        	
        		//always send these values (all set in function.jsp)
        		root.put("language",_language);
	        	root.put("pageUri",_pageUri);
	        	root.put("pageQuery",_pageQuery);
	            root.put("pageUrl",_pageUrl);
	            root.put("error",_error);
	            root.put("page", _page);
	            root.put("locale",_bundle);
	            root.put("siteBaseURL", InstallationConfig.getInstance().get(InstallationConfig.VASCAN_ROOT_URL_KEY));
                template.process(root, out);
        }
} catch (ParseException e) {
        //out.write("ParseException : " + e.getMessage());
} catch (TemplateException e) {
        //out.write("TemplateException : " + e.getMessage());
} catch (IOException e) {
        //out.write("IOException : " + e.getMessage());
}
finally{
	out.flush();
	hibernateSession.getTransaction().commit();
	if(hibernateSession.isOpen())
		   hibernateSession.close();
}
%> 